import { useResponseSuccess } from '~/utils/response';

export default eventHandler((event) => {
  const query = getQuery(event);
  const contextId = query.contextId as string;

  // 模拟预约统计数据
  const stats = {
    totalBookings: 156,
    confirmedBookings: 89,
    completedBookings: 67,
    cancelledBookings: 12,
    averageWaitTime: 25, // 分钟
    noShowRate: 0.08, // 8%
  };

  return useResponseSuccess(stats);
});
